/**
 * child_process模块开启子进程，子进程可以共享内存
 * 
 */
// spawn 产卵 linux
let {spawn} = require('child_process')
let p1 = spawn('node', ['test1.js'])
p1.on('close', function(){
    console.log('子进程1关闭')
})
p1.on('exit', function(){
    console.log('子进程1退出')
})
p1.on('error', function(err){
    console.log('子进程1开启失败' + err)
})


